//
//  FontModel.m
//  ebook
//
//  Created by mt on 16/7/1.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import "FontModel.h"

@implementation FontModel

-(id)initWithDictionary:(NSDictionary *)dict{
    
    self = [super init];
    if (self) {
        self.postscript = dict[@"postscript"];
        self.fullname   = dict[@"fullname"];
        self.fontname   = dict[@"fontname"];
        self.downurl    = dict[@"downurl"];
        self.size       = [dict[@"size"] floatValue];
        self.percent    = dict[@"percent"];
        self.isDownloading = [dict[@"isDownloading"] boolValue];
        self.isDownloaded = [dict[@"isDownloaded"] boolValue];
    }
    return self;
}

@end
